<!DOCTYPE html>
<html lang="zh-cn">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>后台登录页面</title>
    <!-- zui -->
    <link href="dist/css/zui.min.css" rel="stylesheet">
</head>

<body>
    <div class="panel" style="margin-bottom: 10px;">
        <div class="panel-heading">
            搜索条件
        </div>
        <div class="panel-body">
            <div class="col-md-4 with-padding">
                <div class="input-group">
                    <span class="input-group-addon">账户</span>
                    <input type="text" class="form-control" placeholder="请输入账户" id="account">
                </div>
            </div>
            <div class="col-md-4 with-padding">
                <div class="input-group">
                    <span class="input-group-addon">电话</span>
                    <input type="text" class="form-control" placeholder="请输入电话" id="tel">
                </div>
            </div>
            <div class="col-md-4 with-padding">
                <div class="input-group">
                    <span class="input-group-addon">创建时间</span>
                    <input type="date" class="form-control" id="startTime">
                </div>
            </div>
            <div class="col-md-4  with-padding">
                <div class="input-group">
                    <span class="input-group-addon">创建截止时间</span>
                    <input type="date" class="form-control" id="endTime">
                </div>
            </div>
            <div class="col-md-4  with-padding">
                <div class="input-group">
                    <span class="input-group-addon">邮箱</span>
                    <input type="text" class="form-control" placeholder="请输入邮箱" id="email">
                </div>
            </div>
            <div class="col-md-2 with-padding">
                <button class="btn btn-block" type="button" id="searchBtn">搜索</button>
            </div>
            <div class="col-md-2 with-padding">
                <button class="btn btn-block btn-info " type="button" id="reSetBtn">重置</button>
            </div>
        </div>
    </div>
    <div class="panel">
        <div class="panel-heading">
            用户管理
        </div>
        <div class="panel-body">
            <table class="table table-striped table-hover table-bordered">
                <thead>
                    <tr>
                        <th>账户</th>
                        <th>昵称</th>
                        <th>性别</th>
                        <th>电话</th>
                        <th>邮箱</th>
                        <th>创建时间</th>
                        <th>状态</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody id="tableData">
                    <tr>
                        <td>测试1</td>
                        <td>小明</td>
                        <td>男</td>
                        <td>133333333333</td>
                        <td>333333@qq.com</td>
                        <td>2020-1-1</td>
                        <td>启用</td>
                        <td>
                            <button class="btn btn-mini " type="button">重置密码</button>
                            <button class="btn btn-mini " type="button">禁用/启用</button>
                        </td>
                    </tr>
                </tbody>
            </table>
            <!-- 分页 -->
            <div class="text-center">
                <button class="btn" type="button" id="prePageBtn">上一页</button>
                <span id="pageNumber">1/3</span>
                <button class="btn" type="button" id="nextPageBtn">下一页</button>
            </div>
        </div>
    </div>
    <!-- 弹窗 -->
    <!-- 对话框HTML -->
    <div class="modal fade" id="myModal">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" onclick="hide();"><span aria-hidden="true">×</span><span class="sr-only">关闭</span></button>
                    <h4 class="modal-title">修改前台用户密码</h4>
                </div>
                <div class="modal-body">
                    <div class="col-md-12 with-padding">
                        <div class="input-group">
                            <span class="input-group-addon">账户</span>
                            <input type="text" class="form-control" disabled="disabled" id="updateAccount">
                        </div>
                    </div>
                    <div class="col-md-12 with-padding">
                        <div class="input-group">
                            <span class="input-group-addon">旧密码</span>
                            <input type="text" class="form-control" id="olePwd">
                        </div>
                    </div>
                    <div class="col-md-12 with-padding">
                        <div class="input-group">
                            <span class="input-group-addon">新密码</span>
                            <input type="text" class="form-control" id="newPwd">
                        </div>
                    </div>
                    <div class="col-md-12 with-padding">
                        <div class="input-group">
                            <span class="input-group-addon">重复密码</span>
                            <input type="text" class="form-control" id="rePwd">
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" onclick="hide();">关闭</button>
                    <button type="button" class="btn btn-primary" onclick="updatePwdAjax();">保存</button>
                </div>
            </div>
        </div>
    </div>
</body>

<!-- jQuery (ZUI中的Javascript组件依赖于jQuery) -->
<script src="dist/lib/jquery/jquery-3.4.1.min.js"></script>
<!-- ZUI Javascript组件 -->
<script src="dist/js/zui.min.js"></script>
<!-- layer弹窗JS -->
<script src="layer/layer.js"></script>
<!-- 自定义JS -->
<script src="js/user_mgr.js"></script>
<script src="js/common.js"></script>
<script>
    function hide() {
        $('#myModal').modal('hide', 'fit');
    }

    function showPanel() {
        $('#myModal').modal({
            backdrop: 'static', //点击页面不隐藏
            show: true, //显示窗口
            moveable: true, //能够移动
            rememberPos: true //记住移动的位置
        });
    }
</script>

</html>